<?
$mapPath = 'content/map.xml';
$items = getMapItems($mapPath, $lang);

?>
<div>
	<div class="sitemap">	alamakota
	
	<?php 
	    foreach ($items as $item) {
	?>
	    <div class="map-item">
	        <a href="<?php echo $APP_PATH.$item->path;?>"><?php echo $item->label;?></a>
	        <div class="map-subitems">
           <?php 
            if ($item->subitems != null) {
            foreach ($item->subitems as $subitem) {
           ?>           
                <a href="<?php echo $APP_PATH.$subitem->path;?>"><?php echo $subitem->label;?></a>
           <?php            
            }
            }
           ?>
	        </div>
	    </div>  
	<?php         
	    }
	?>
	</div>

</div>	

